package com.sumer.psychology.sharing.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;

import java.util.Set;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/10
 * Time: 9:54
 */
public class SharedResourceChangedEvent extends AbstractDomainEvent {
    private SharedResourceId sharedResourceId;
    private String topic;
    private Set<SharedFile> sharedFiles;

    public SharedResourceChangedEvent(SharedResourceId sharedResourceId, String topic, Set<SharedFile> sharedFiles) {
        super();
        this.sharedResourceId = sharedResourceId;
        this.topic = topic;
        this.sharedFiles = sharedFiles;
    }

    public SharedResourceId sharedResourceId() {
        return sharedResourceId;
    }

    public String topic() {
        return topic;
    }

    public Set<SharedFile> sharedFiles() {
        return sharedFiles;
    }
}
